#!/bin/bash

# 源文件路径
SOURCE_FILE="${SRCROOT}/Test_Thresh/bundle.js"
# 目标文件路径
TARGET_DIR="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app"

# 检查源文件是否存在
if [ -f "$SOURCE_FILE" ]; then
    echo "Source file exists: $SOURCE_FILE"
    # 复制文件
    cp "$SOURCE_FILE" "$TARGET_DIR/"
    echo "Copied bundle.js to: $TARGET_DIR/"
else
    echo "Error: Source file does not exist: $SOURCE_FILE"
    exit 1
fi